<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<meta name="viewport" content="width=device-width, user-scalable=no">
		<title>rem</title>
		<script type="text/javascript">
			(function() {
				var html = document.documentElement;
				var hwidth = html.getBoundingClientRect().width;
				html.style.fontSize = hwidth / 16+ "px";
			}())
		</script>
		<style type="text/css">
					body {
				margin: 0;
			}
			div div {
				float: left;
				box-sizing: border-box;
				width: 4rem;
				height: 4rem;
				border: 1px solid #eee;
			}
			
			div div:nth-of-type(1) {
				background-color: red;
			}
			
			div div:nth-of-type(2) {
				background-color: yellow;
			}
			
			div div:nth-of-type(3) {
				background-color: green;
			}
			
			div div:nth-of-type(4) {
				background-color: pink;
			}
		</style>
		<link rel="stylesheet" type="text/css" href="css/css.less"/>
	</head>
	<body>

		<div id="wid" >
			<div class="box1"></div>
			<div class="box2"></div>
			<div class="box3"></div>
			<div class="box4"></div>
		</div>
	</body>
</html>
